/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.jcdev.coolrss.view;

import com.sun.syndication.feed.synd.SyndEntryImpl;
import javax.swing.event.TableModelListener;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import net.jcdev.coolrss.model.entity.Entry;

/**
 *
 * @author carlos
 */
public class FeedTableModel extends DefaultTableModel {

    private SyndEntryImpl entryFeed;
    private Entry entry;



    protected FeedTableModel() {

    }

    public FeedTableModel(SyndEntryImpl entryImpl) {
        this.entryFeed = entryImpl;
        entry.setEntryLink(entryFeed.getLink());
        entry.setEntryAuthor(entryFeed.getAuthor());
        entry.setEntryTitle(entryFeed.getTitle());
        entry.setEntryPublishedDate(entryFeed.getPublishedDate());
        entry.setEntryUpdatedDate(entryFeed.getUpdatedDate());
        entry.setEntryStatus('U');
        entry.setEntryDescription(entryFeed.getDescription().getValue());
    }

}
